/* Class14_Sub8_Sub22 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class14_Sub8_Sub22 extends Class14_Sub8
{
    public static Class124 aClass124_4452;
    public static Class124 aClass124_4453;
    public static Class31 aClass31_4454;
    public static int anInt4455;
    public static Class124 aClass124_4456
	= Class14_Sub2_Sub2.method263(1178, "Loaded update list");
    public static int anInt4457;
    public static int anInt4458;
    public static int anInt4459;
    public static int anInt4460;
    public static int anInt4461;
    public static Class124 aClass124_4462;
    public static int anInt4463;
    public static int anInt4464;
    public static int anInt4465;
    public static int anInt4466;
    
    public static void method593(int arg0, int arg1, int arg2, int arg3,
				 int arg4, int arg5, int arg6, int arg7) {
	try {
	    int i = arg3;
	    int i_0_ = 0;
	    int i_1_ = 0;
	    int i_2_ = -arg5 + arg1;
	    int i_3_ = arg3 - arg5;
	    int i_4_ = arg1 * arg1;
	    anInt4463++;
	    int i_5_ = arg3 * arg3;
	    int i_6_ = i_2_ * i_2_;
	    int i_7_ = i_4_ << 1230547553;
	    int i_8_ = i_3_ * i_3_;
	    int i_9_ = i_5_ << 1122137729;
	    int i_10_ = i_8_ << -1909191807;
	    int i_11_ = i_6_ << -879790815;
	    int i_12_ = arg3 << 906866689;
	    int i_13_ = i_4_ * (-i_12_ + 1) + i_9_;
	    int i_14_ = i_3_ << 783214209;
	    int i_15_ = -((i_12_ - 1) * i_7_) + i_5_;
	    int i_16_ = i_6_ * (1 + -i_14_) - -i_10_;
	    int i_17_ = i_8_ - i_11_ * (i_14_ + -1);
	    int i_18_ = i_4_ << 1831429282;
	    int i_19_ = i_5_ << -313093982;
	    int i_20_ = i_6_ << 2128532930;
	    int i_21_ = i_8_ << -1799413278;
	    int i_22_ = i_7_ * (i_12_ - 3);
	    int i_23_ = 3 * i_10_;
	    int i_24_ = i_9_ * 3;
	    if (arg4 > -67)
		aClass31_4454 = null;
	    int i_25_ = i_11_ * (i_14_ - 3);
	    int i_26_ = i_19_;
	    int i_27_ = (arg3 - 1) * i_18_;
	    int i_28_ = i_21_;
	    int i_29_ = i_20_ * (i_3_ + -1);
	    if ((arg6 ^ 0xffffffff) <= (Class14_Sub17.anInt3005 ^ 0xffffffff)
		&& arg6 <= Class59.anInt955) {
		int[] is = Class14_Sub2_Sub19.anIntArrayArray4038[arg6];
		int i_30_ = Class67.method1301((byte) 72, -arg1 + arg0,
					       Class118.anInt1982,
					       Class14_Sub8_Sub14.anInt4327);
		int i_31_ = Class67.method1301((byte) -105, arg0 + arg1,
					       Class118.anInt1982,
					       Class14_Sub8_Sub14.anInt4327);
		int i_32_ = Class67.method1301((byte) -125, -i_2_ + arg0,
					       Class118.anInt1982,
					       Class14_Sub8_Sub14.anInt4327);
		int i_33_ = Class67.method1301((byte) 27, arg0 + i_2_,
					       Class118.anInt1982,
					       Class14_Sub8_Sub14.anInt4327);
		Class51.method1201(is, i_30_, i_32_, -5973, arg2);
		Class51.method1201(is, i_32_, i_33_, -5973, arg7);
		Class51.method1201(is, i_33_, i_31_, -5973, arg2);
	    }
	    while ((i ^ 0xffffffff) < -1) {
		if ((i_13_ ^ 0xffffffff) > -1) {
		    while (-1 < (i_13_ ^ 0xffffffff)) {
			i_13_ += i_24_;
			i_24_ += i_19_;
			i_0_++;
			i_15_ += i_26_;
			i_26_ += i_19_;
		    }
		}
		if (-1 < (i_15_ ^ 0xffffffff)) {
		    i_15_ += i_26_;
		    i_0_++;
		    i_26_ += i_19_;
		    i_13_ += i_24_;
		    i_24_ += i_19_;
		}
		i_13_ += -i_27_;
		boolean bool = (i_3_ ^ 0xffffffff) <= (i ^ 0xffffffff);
		i_15_ += -i_22_;
		i_22_ -= i_18_;
		if (bool) {
		    if (0 > i_16_) {
			while (0 > i_16_) {
			    i_17_ += i_28_;
			    i_28_ += i_21_;
			    i_16_ += i_23_;
			    i_23_ += i_21_;
			    i_1_++;
			}
		    }
		    if (i_17_ < 0) {
			i_16_ += i_23_;
			i_23_ += i_21_;
			i_1_++;
			i_17_ += i_28_;
			i_28_ += i_21_;
		    }
		    i_17_ += -i_25_;
		    i_25_ -= i_20_;
		    i_16_ += -i_29_;
		    i_29_ -= i_20_;
		}
		i--;
		int i_34_ = arg6 - i;
		i_27_ -= i_18_;
		int i_35_ = arg6 - -i;
		if (Class14_Sub17.anInt3005 <= i_35_
		    && Class59.anInt955 >= i_34_) {
		    int i_36_
			= Class67.method1301((byte) 40, i_0_ + arg0,
					     Class118.anInt1982,
					     Class14_Sub8_Sub14.anInt4327);
		    int i_37_
			= Class67.method1301((byte) -112, -i_0_ + arg0,
					     Class118.anInt1982,
					     Class14_Sub8_Sub14.anInt4327);
		    if (bool) {
			int i_38_
			    = Class67.method1301((byte) 35, arg0 - -i_1_,
						 Class118.anInt1982,
						 Class14_Sub8_Sub14.anInt4327);
			int i_39_
			    = Class67.method1301((byte) -81, -i_1_ + arg0,
						 Class118.anInt1982,
						 Class14_Sub8_Sub14.anInt4327);
			if ((i_34_ ^ 0xffffffff)
			    <= (Class14_Sub17.anInt3005 ^ 0xffffffff)) {
			    int[] is = (Class14_Sub2_Sub19.anIntArrayArray4038
					[i_34_]);
			    Class51.method1201(is, i_37_, i_39_, -5973, arg2);
			    Class51.method1201(is, i_39_, i_38_, -5973, arg7);
			    Class51.method1201(is, i_38_, i_36_, -5973, arg2);
			}
			if (i_35_ <= Class59.anInt955) {
			    int[] is = (Class14_Sub2_Sub19.anIntArrayArray4038
					[i_35_]);
			    Class51.method1201(is, i_37_, i_39_, -5973, arg2);
			    Class51.method1201(is, i_39_, i_38_, -5973, arg7);
			    Class51.method1201(is, i_38_, i_36_, -5973, arg2);
			}
		    } else {
			if (Class14_Sub17.anInt3005 <= i_34_)
			    Class51.method1201((Class14_Sub2_Sub19
						.anIntArrayArray4038[i_34_]),
					       i_37_, i_36_, -5973, arg2);
			if ((i_35_ ^ 0xffffffff)
			    >= (Class59.anInt955 ^ 0xffffffff))
			    Class51.method1201((Class14_Sub2_Sub19
						.anIntArrayArray4038[i_35_]),
					       i_37_, i_36_, -5973, arg2);
		    }
		}
	    }
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("lg.B(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ arg4 + ',' + arg5 + ','
						+ arg6 + ',' + arg7 + ')'));
	}
    }
    
    public int[] method484(int arg0, byte arg1) {
	int[] is;
	try {
	    anInt4466++;
	    if (arg1 >= -58)
		aClass124_4453 = null;
	    is = Class14_Sub8_Sub4.anIntArray4145;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("lg.A(" + arg0 + ',' + arg1
						+ ')'));
	}
	return is;
    }
    
    public Class14_Sub8_Sub22() {
	super(0, true);
    }
    
    public static void method594(int arg0, boolean arg1, int arg2, int arg3,
				 int arg4, int arg5, int arg6, int arg7,
				 int arg8) {
    while_420_:
	do {
	while_419_:
	    do {
		do {
		    try {
			if (arg1 == true)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_419_;
		    }
		    return;
		} while (false);
		do {
		    try {
			anInt4464++;
			if (Class126.method1741((byte) 68, arg3))
			    break;
			if (-1 != arg4)
			    Class14_Sub8_Sub36.aBooleanArray4698[arg4] = true;
			else {
			    for (int i = 0; 100 > i; i++)
				Class14_Sub8_Sub36.aBooleanArray4698[i] = true;
			}
		    } catch (RuntimeException runtimeexception) {
			break while_419_;
		    }
		    return;
		} while (false);
		try {
		    Class60.aClass94Array980 = null;
		    Class137.method1942(arg4, arg8, arg5, -1,
					Class1.aClass94ArrayArray75[arg3],
					arg7, arg2, arg0, (byte) 93, arg6);
		    if (null != Class60.aClass94Array980) {
			Class137.method1942(arg4, arg8, arg5, -1412584499,
					    Class60.aClass94Array980, arg7,
					    Class14_Sub8_Sub17.anInt4379, arg0,
					    (byte) 93,
					    Class14_Sub8_Sub12.anInt4295);
			Class60.aClass94Array980 = null;
		    }
		} catch (RuntimeException runtimeexception) {
		    break;
		}
		break while_420_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       ("lg.G(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ arg4 + ',' + arg5 + ','
						+ arg6 + ',' + arg7 + ','
						+ arg8 + ')'));
	} while (false);
    }
    
    public static void method595(int arg0, Class43 arg1) {
	try {
	    anInt4461++;
	    if (arg0 != 257411150)
		method593(71, -18, -85, -23, -65, -90, 58, -123);
	    Class30 class30 = null;
	    try {
		Class31 class31
		    = arg1.method1152("runescape", arg0 + -257411150);
		while (class31.anInt529 == 0)
		    Class14_Sub13.method864(1L, (byte) 64);
		if ((class31.anInt529 ^ 0xffffffff) == -2) {
		    class30 = (Class30) class31.anObject530;
		    Class14_Sub10 class14_sub10
			= Class7_Sub3.method132((byte) 63);
		    class30.method1056(0, class14_sub10.anInt2908,
				       class14_sub10.aByteArray2895, -20563);
		}
	    } catch (Exception exception) {
		/* empty */
	    }
	    try {
		if (class30 != null)
		    class30.method1057(25861);
	    } catch (Exception exception) {
		/* empty */
	    }
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("lg.K(" + arg0 + ','
						+ (arg1 != null ? "{...}"
						   : "null")
						+ ')'));
	}
    }
    
    public static boolean method596(long arg0, int arg1, int arg2, int arg3) {
	boolean bool;
	try {
	    int i = ((int) arg0 & 0x7dba5) >> 257411150;
	    anInt4460++;
	    int i_40_ = 0x7fffffff & (int) (arg0 >>> 1203069280);
	    int i_41_ = (int) arg0 >> -1270259148 & 0x3;
	    if (10 == i || i == 11 || 22 == i) {
		Class79 class79 = Class79.method1377((byte) -106, i_40_);
		int i_42_;
		int i_43_;
		if (-1 == (i_41_ ^ 0xffffffff) || (i_41_ ^ 0xffffffff) == -3) {
		    i_43_ = class79.anInt1227;
		    i_42_ = class79.anInt1245;
		} else {
		    i_42_ = class79.anInt1227;
		    i_43_ = class79.anInt1245;
		}
		int i_44_ = class79.anInt1244;
		if (0 != i_41_)
		    i_44_ = (0xf & i_44_ << i_41_) + (i_44_ >> 4 - i_41_);
		Class14_Sub8_Sub35.method663
		    (Class14_Sub3.aClass133_Sub1_Sub1_2748.anIntArray3476[0],
		     i_42_, 0, i_44_, (byte) 109,
		     Class14_Sub3.aClass133_Sub1_Sub1_2748.anIntArray3443[0],
		     true, 0, arg1, 2, i_43_, arg2);
	    } else
		Class14_Sub8_Sub35.method663
		    (Class14_Sub3.aClass133_Sub1_Sub1_2748.anIntArray3476[0],
		     0, i_41_, 0, (byte) 109,
		     Class14_Sub3.aClass133_Sub1_Sub1_2748.anIntArray3443[0],
		     true, 1 + i, arg1, 2, 0, arg2);
	    Class14_Sub2_Sub11.anInt3881 = 2;
	    Class14_Sub8_Sub9.anInt4243 = Class125_Sub1.anInt3367;
	    int i_45_ = 67 / ((-9 - arg3) / 36);
	    Class14_Sub2_Sub17.anInt4017 = 0;
	    Class14_Sub8_Sub25.anInt4515 = Class139.anInt2230;
	    bool = true;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("lg.E(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3
						+ ')'));
	}
	return bool;
    }
    
    public static boolean method597(Class124 arg0, int arg1) {
    while_421_:
	do {
	    do {
		boolean bool;
		try {
		    anInt4465++;
		    if (null != arg0)
			break;
		    bool = false;
		} catch (RuntimeException runtimeexception) {
		    break while_421_;
		}
		return bool;
	    } while (false);
	    int i;
	    try {
		i = arg1;
	    } catch (RuntimeException runtimeexception) {
		break;
	    }
	    while ((i ^ 0xffffffff) > (Class42.anInt698 ^ 0xffffffff)) {
		if (arg0.method1717(40, client.aClass124Array2645[i]))
		    return true;
		try {
		    i++;
		} catch (RuntimeException runtimeexception) {
		    break while_421_;
		}
	    }
	    return false;
	} while (false);
	Throwable throwable = new Throwable();
	throw Class14_Sub8_Sub14.method554(throwable,
					   ("lg.H("
					    + (arg0 != null ? "{...}" : "null")
					    + ',' + arg1 + ')'));
    }
    
    public static boolean method598(int arg0, int arg1) {
    while_422_:
	do {
	    do {
		boolean bool;
		try {
		    anInt4458++;
		    if (arg1 > arg0 || arg0 > 122)
			break;
		    bool = true;
		} catch (RuntimeException runtimeexception) {
		    break while_422_;
		}
		return bool;
	    } while (false);
	    do {
		boolean bool;
		try {
		    if (65 > arg0 || 90 < arg0)
			break;
		    bool = true;
		} catch (RuntimeException runtimeexception) {
		    break while_422_;
		}
		return bool;
	    } while (false);
	    do {
		boolean bool;
		try {
		    if (48 > arg0 || -58 > (arg0 ^ 0xffffffff))
			break;
		    bool = true;
		} catch (RuntimeException runtimeexception) {
		    break while_422_;
		}
		return bool;
	    } while (false);
	    boolean bool;
	    try {
		bool = false;
	    } catch (RuntimeException runtimeexception) {
		break;
	    }
	    return bool;
	} while (false);
	Throwable throwable = new Throwable();
	throw Class14_Sub8_Sub14.method554(throwable,
					   "lg.J(" + arg0 + ',' + arg1 + ')');
    }
    
    public static void method599(boolean arg0) {
	try {
	    if (arg0)
		method597(null, 104);
	    aClass124_4452 = null;
	    aClass124_4456 = null;
	    aClass124_4462 = null;
	    aClass124_4453 = null;
	    aClass31_4454 = null;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "lg.D(" + arg0 + ')');
	}
    }
    
    static {
	aClass124_4453 = aClass124_4456;
	aClass124_4452 = Class14_Sub2_Sub2.method263(1178, "<col=40ff00>");
	aClass124_4462 = Class14_Sub2_Sub2.method263(1178, "hint_mapmarkers");
    }
}
